local quedi = fk.CreateSkill{
    name = "heg__quedi",
}

Fk:loadTranslationTable{
  ["heg__quedi"] = "却敌",
  [":heg__quedi"] = "出牌阶段限一次，你可以视为使用一张【决斗】。",

  ["#heg__quedi"] = "却敌：你可以视为使用一张【决斗】",

  ["$heg__quedi1"] = "力摧敌阵，如视天光破云！",
  ["$heg__quedi2"] = "让尔等有命追，无命回！",
}

quedi:addEffect("viewas",{
    anim_type = "offensive",
    prompt = "#heg__quedi",
    pattern = "duel",
    card_filter = Util.FalseFunc,
    view_as = function(self, player, cards)
      local card = Fk:cloneCard("duel")
      card.skillName = quedi.name
      return card
    end,
    enabled_at_play = function(self, player)
      return player:usedSkillTimes(quedi.name, Player.HistoryPhase) == 0
    end,
})

return quedi